<div class="levels view">
<h2><?php echo $level['Level']['title']; ?></h2>
	<dl>
		<dt><?php echo __('Descripción'); ?></dt>
		<dd>
			<?php echo h($level['Level']['description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Módulo'); ?></dt>
		<dd>
			<?php echo $this->Html->link($level['Module']['title'], array('controller' => 'modules', 'action' => 'view', $level['Module']['id'])); ?>
			&nbsp;
		</dd>
	</dl>

	<div class="related">
	<h3><?php echo __('Tópicos correspondientes al nivel'); ?></h3>
	<?php if (!empty($level['Topic'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Nombre'); ?></th>
		<th><?php echo __('Descripción'); ?></th>
		<th class="actions"><?php echo __('Acciones'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($level['Topic'] as $topic): ?>
		<tr>
			<td>
			<?php echo $this->Html->link($topic['title'], array('controller' => 'topics', 'action' => 'view', $topic['id'])); ?>
		</td>
			<td><?php echo $topic['description']; ?></td>
			<td class="actions">
				<!--<?php echo $this->Html->link(__('Ver'), array('controller' => 'topics', 'action' => 'view', $topic['id'])); ?>
				<?php echo $this->Html->link(__('Editar'), array('controller' => 'topics', 'action' => 'edit', $topic['id'])); ?>
				<?php echo $this->Form->postLink(__('Eliminar'), array('controller' => 'topics', 'action' => 'delete_inContext', $topic['id'], $topic['level_id']), null, __('¿Está seguro que desea eliminar el tópico %s?', $topic['title'])); ?>
			--></td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
<!--
	<div class="actions">
		<ul>
			<li>
			<?php echo  $this->Html->link(__('Nuevo Tópico', true), array('action' => 'add_topic', $level['Level']['id']),true);?>
			</li>
		</ul>
	</div>
-->
</div>
</div>

<!--
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editar Nivel'), array('action' => 'edit', $level['Level']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Eliminar nivel'), array('action' => 'delete', $level['Level']['id']), null, __('¿Está seguro que desea eliminar el nivel %s?', $level['Level']['title'])); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Niveles'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo nivel'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Módulos'), array('controller' => 'modules', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Módulo'), array('controller' => 'modules', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Tópicos'), array('controller' => 'topics', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Tópico'), array('controller' => 'topics', 'action' => 'add')); ?> </li>
	</ul>
</div>
-->
